home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 516 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  833 b 

  1. Path: pegasus.PFM-Mainz.de!babylon!rbabel
  2. From: rbabel@babylon.pfm-mainz.de (Ralph Babel)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: RunCommand() of "execute" cmd seglist weirdness
  5. Message-ID: <54417@babylon.pfm-mainz.de>
  6. Date: 8 Jan 1996 21:10:31 +0100
  7. References: <4c5nra$beq@clare.res.com>
  8.  
  9. Sam Yee wrote:
  10.  
  11. > RunCommand(ex_seglist,8192,"T:runcmd.test\n",14);
  12. > Flush(Output());
  13. > Printf("RunCommand end\n");
  14. >
  15. > This is weird as "execute" is run *after*
  16. > Printf("RunCommand end\n").
  17.  
  18. That's the proper behavior, as "Execute" modifies the
  19. shell's command stream. Unless your program _is_ a shell,
  20. however, you're not really supposed to call RunCommand()
  21. anyway. See sections 14.5, 17.1.113, 20.1.2, and the last
  22. paragraph on page 502 of the Amiga Guru Book for details.
  23.  
  24. ftp://ftp.pfm-mainz.de/pub/amiga/gurubook-info.lha
  25.